package com.yueshop.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yueshop.common.utils.PageUtils;
import com.yueshop.member.entity.MemberEntity;
import com.yueshop.member.vo.MemberRegistVo;
import com.yueshop.member.vo.SocialUserVo;
import com.yueshop.member.vo.UserLoginVo;

import java.util.Map;

/**
 * 会员
 *
 * @author cr
 * @email cr@gmail.com
 * @date 2021-04-09 14:41:45
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo); //用户和手机号 唯一性校验
    void checkUsernameUnique(String username); //用户名校验
    void checkPhoneUnique(String phone);//手机号校验

    MemberEntity login(UserLoginVo vo);


    MemberEntity login(SocialUserVo vo);
}

